#include<iostream>

using namespace std;

int count = 0;

void show(const char* str, int n = 0)
{
    count++;
    int lim = 0;
    if ( n == 0)
    lim = 1;
    else
    lim = count;
    for ( int i = 0; i < lim; i++)
    cout << str << endl;
}

int main()
{
    char pstr[]="Hello\n";
    show(pstr);
    int num;
    cout<<"Enter a number:";
    cin>>num;
    show(pstr,num);
    cout<<"Done\n";
    return 0;
}